home *** CD-ROM | disk | FTP | other *** search
/ IRIX Patches 1995 June / SGI IRIX Patches 1995 Jun.iso / 5.3_patches / patchSG0000499 / patchSG0000499.idb / usr / include / abi / X11 / extensions / SGIMisc.h.z / SGIMisc.h
Encoding:
C/C++ Source or Header  |  1995-06-12  |  2.9 KB  |  84 lines

  1. /************************************************************
  2. Copyright 1989 by The Massachusetts Institute of Technology
  3.  
  4. Permission to use, copy, modify, and distribute this
  5. software and its documentation for any purpose and without
  6. fee is hereby granted, provided that the above copyright
  7. no- tice appear in all copies and that both that copyright
  8. no- tice and this permission notice appear in supporting
  9. docu- mentation, and that the name of MIT not be used in
  10. advertising or publicity pertaining to distribution of the
  11. software without specific prior written permission.
  12. M.I.T. makes no representation about the suitability of
  13. this software for any purpose. It is provided "as is"
  14. without any express or implied warranty.
  15.  
  16. ********************************************************/
  17.  
  18. /* RANDOM CRUFT! THIS HAS NO OFFICIAL X CONSORTIUM BLESSING */
  19.  
  20. /* $XConsortium: SGIMisc.h,v 1.1 89/10/08 19:39:25 rws Exp $ */
  21.  
  22. #ifndef _XSGIMISC_H_
  23. #define _XSGIMISC_H_
  24.  
  25. #include <malloc.h> /* needed for XSGIMallocInfo */
  26.  
  27. #define X_SGISetAutoRepeatRate        0
  28. #define X_SGIGetAutoRepeatRate        1
  29. #define X_SGIDeviceControl        2
  30. #define X_SGIDeviceQuery        3
  31. #define X_SGISetThirdCursorColor    4
  32. #define X_SGISetPointerBox        5
  33. #define X_SGICycleColorCell        6
  34. #define X_SGIConstrainValuator        7
  35. #define X_SGIMallocInfo            8
  36. #define X_SGISetSpecialDestroyInterest    9
  37.  
  38. #define SGIMiscSpecialDestroy        0
  39. #define SGIMiscNumberEvents        1
  40.  
  41. #define SGIMiscNumberErrors        0
  42.  
  43. #define SGIMaxDeviceNameLen    15
  44. #define SGIMaxDeviceDataLen    23
  45. #define SGIDeviceRtrnLen    24
  46.  
  47. #define SGIPointerX        256
  48. #define SGIPointerY        257
  49.  
  50. #ifndef _SGIMISC_SERVER_
  51. Bool XSGIMiscQueryExtension(Display *, int *, int *);
  52. Status XSGIMiscClearPointerBox(Display *, XID);
  53. Status XSGIMiscSetPointerBox(Display *, Window, unsigned short,
  54.     unsigned short, unsigned short, unsigned short, XID *);
  55. Status XSGIMiscCycleColorCell(Display *, Colormap, short, XColor *);
  56. Status XSGIMiscSetThirdCursorColor(Display *, Cursor, XColor *);
  57. Status XSGIMiscSetAutoRepeatRate(Display *, unsigned int, unsigned int);
  58. Bool XSGIMiscGetAutoRepeatRate(Display *, unsigned int *, unsigned int *);
  59.  
  60. Bool XSGIDeviceControl(Display *, int, char *, char *);
  61. Bool XSGIDeviceQuery(Display *, int, char *, char *);
  62. Bool XSGIMiscConstrainValuator(Display *, int, int, int, int);
  63. Bool XSGIMallocInfo(Display *, struct mallinfo *);
  64.  
  65. /*
  66.  * The routines below are used so direct rendering OpenGL
  67.  * implementations using soft ancillary buffers can know to
  68.  * deallocate the buffers when their associated window is
  69.  * destroyed.  This is an internal, private interface.
  70.  * Don't rely on it.
  71.  */
  72.  
  73. typedef void (*_XSGISpecialDestroyHandler) (
  74.     Display*            /* display */,
  75.     Window              /* window */
  76. );
  77.  
  78. _XSGISpecialDestroyHandler _XSGISetSpecialDestroyHandler(_XSGISpecialDestroyHandler);
  79. Status _XSGISetSpecialDestroyInterest(Display *dpy, Window win);
  80.  
  81. #endif /* _SGIMISC_SERVER_ */
  82.  
  83. #endif /* _XSGIMISC_H_ */
  84.